﻿exports.empty = function(req, res) {

	if (!res.locals.partials) res.locals.partials = {};
	res.locals.partials.sites = global.sites;
	res.locals.partials.menus = global.menus;

	if (!res.locals.partials.currentSite) {
		var partUrl = req.headers.host;
		for (var i = 0; i < sites.length; i++) {
			if (sites[i].url.indexOf(partUrl) != -1){
				res.locals.partials.currentSite = sites[i];
			}
		}
	}

	res.render('empty');
};

/* GET home page. */
exports.render = function(req, res) {

	res.render('run/index', {
		layout: null
	});
};